package com.neusoft.demo9;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class ExceptionDemo2 {
    public static void main(String[] args) {
        //非检查性异常
        String[] names = {"fender","gibson"};
        System.out.println(names[2]);
        //检查异常

        try {
            FileInputStream fis = new FileInputStream("test");
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        }catch(Exception e) {
            System.out.println("1111111111111111");
        }

    }
}
